import request from '@/utils/request'

function formatRequestUri(name) {
  return 'flow/app/msg/' + name
}

export function Gets(appId) {
  return request({
    url: formatRequestUri('Gets'),
    method: 'get',
    params: {
      appId
    }
  })
}
export function Set(appId, formId, data) {
  return request({
    url: formatRequestUri('Set'),
    method: 'post',
    data: {
      AppId: appId,
      FormId: formId,
      Data: data
    }
  })
}
